package com.goldcn.classify.dao;

import com.goldcn.classify.dto.Dto_ClazzStyleColor;
import com.goldcn.classify.model.Classify;
import com.goldcn.classify.model.Platform;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

public interface ClassifyMapper {

    int deleteByPrimaryKey(String clazzid);

    int insert(Classify record);

    int insertSelective(Classify record);

    Classify selectByPrimaryKey(String clazzid);

    int updateByPrimaryKeySelective(Classify record);

    int updateByPrimaryKey(Classify record);

    List<Classify> selectClassifyList(@Param("clazztype") int clazztype);

    List<Classify> selectClassifyListV(@Param("clazztype") int clazztype);

    List<Classify> selectByclazzparentid(String clazzparentid);

    List<Classify> selectTipClassify(Map<String, String> parm);

    List<Map<String, Object>> selectedall(Map<String, Object> param);

    List<Dto_ClazzStyleColor> selectColorStyleByClassifyNoTree(
            @Param("code") String code, @Param("clazzID") String clazzID);

    List<Map<String, Object>> selecteByIDs(List<String> ids);

    List<Platform> selectAllPlatform();

}